package wsl;

import java.util.List;

import wsl.parse.FileHandler;
import wsl.parse.PlantHandler;

import static wsl.tool.PrintTool.output;
public class Demo {

	public static void main(String[] args) {
		String filePath = "src/wsl/conf/catalog.xml";
		//output("second para is: "+args[1]);
		FileHandler file =new FileHandler(filePath);
		List list = file.parse();
		
		PlantHandler p=new PlantHandler();
		
		p.getPriceList(list);
		output((p.getMaxPrice(list)));
		
		output(p.getMinPrice(list));
		
		output(p.getAveragePrice(list));
	}

}
